import shelve as sl


print("")
with sl.open("data") as shelfFile:
    say_dict = {"CYH": "好好学习,天天向上"}
    shelfFile["say_dict"] = say_dict

    # shelfFile[]
with sl.open("data") as shelfFile:
    # del shelfFile["say_dict"]
    print("say_dict" in shelfFile)
